<?php


namespace App\DTO;


use App\Entity\User;

class UserInput
{
    /** @var string|null */
    private $code;
    /** @var string|null */
    private $userName;
    /** @var string|null */
    private $pwd;
    /** @var string|null */
    private $email;
    /** @var User[]|null 好友列表*/
    private $friend;

    /**
     * @return string|null
     */
    public function getCode(): ?string
    {
        return $this->code;
    }

    /**
     * @param string|null $code
     * @return UserInput
     */
    public function setCode(?string $code): UserInput
    {
        $this->code = $code;
        return $this;
    }

    /**
     * @return string|null
     */
    public function getUserName(): ?string
    {
        return $this->userName;
    }

    /**
     * @param string|null $userName
     * @return UserInput
     */
    public function setUserName(?string $userName): UserInput
    {
        $this->userName = $userName;
        return $this;
    }

    /**
     * @return string|null
     */
    public function getPwd(): ?string
    {
        return $this->pwd;
    }

    /**
     * @param string|null $pwd
     * @return UserInput
     */
    public function setPwd(?string $pwd): UserInput
    {
        $this->pwd = $pwd;
        return $this;
    }

    /**
     * @return string|null
     */
    public function getEmail(): ?string
    {
        return $this->email;
    }

    /**
     * @param string|null $email
     * @return UserInput
     */
    public function setEmail(?string $email): UserInput
    {
        $this->email = $email;
        return $this;
    }

    /**
     * @return User[]|null
     */
    public function getFriend(): ?array
    {
        return $this->friend;
    }

    /**
     * @param User[]|null $friend
     * @return UserInput
     */
    public function setFriend(?array $friend): UserInput
    {
        $this->friend = $friend;
        return $this;
    }





}
